import 'package:flutter_test/flutter_test.dart';
import 'package:jm_usb/jm_usb.dart';
import 'package:jm_usb/jm_usb_platform_interface.dart';
import 'package:jm_usb/jm_usb_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

// class MockJmUsbPlatform
//     with MockPlatformInterfaceMixin
//     implements JmUsbPlatform {
//
//   @override
//   Future<String?> getPlatformVersion() => Future.value('42');
// }

void main() {
  final JmUsbPlatform initialPlatform = JmUsbPlatform.instance;

  test('$MethodChannelJmUsb is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelJmUsb>());
  });

  // test('getPlatformVersion', () async {
  //   JmUsb jmUsbPlugin = JmUsb();
  //   MockJmUsbPlatform fakePlatform = MockJmUsbPlatform();
  //   JmUsbPlatform.instance = fakePlatform;
  //
  //   expect(await jmUsbPlugin.getPlatformVersion(), '42');
  // });
}
